﻿<Window x:Class="SsTool.Metadata.Windows.PropertyTypeMetadataWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="PropertyTypeMetadataWindow" Height="350" Width="300" WindowStartupLocation="CenterScreen">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
            <TextBlock Text="Caption:"/>
            <TextBox Text="{Binding Caption,Mode=TwoWay}"/>
            
            <TextBlock Text="DbType:"/>
            <TextBox Text="{Binding DbType,Mode=TwoWay}"/>
            
            <TextBlock Text="MinLength:"/>
            <TextBox Text="{Binding MinLength,Mode=TwoWay}"/>
            
            <TextBlock Text="MaxLength:"/>
            <TextBox Text="{Binding MaxLength,Mode=TwoWay}"/>
            
            <TextBlock Text="Description:"/>
            <TextBox Text="{Binding Description,Mode=TwoWay}"/>
        </StackPanel>
        <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Center">
            <Button Name="_ctlBtnCreate" Content="确定" Click="_ctlBtnCreate_Click" Margin="5" />
            <Button Name="_ctlBtnCancel" Content="关闭" Click="_ctlBtnCancel_Click" Margin="5" />
        </StackPanel>
    </Grid>
</Window>
